home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MACD 5
/
MACD 5.bin
/
workbench
/
tools
/
czesc_4
/
video6-drivers
/
arexx
/
wbham6.ifx
< prev
next >
Wrap
Text File
|
1982-07-29
|
1KB
|
37 lines
/*
* $VER: MapToWB 1.00.00 (24.9.92)
*
* Arexx program for the ImageFX image processing system.
* Written by Thomas Krehbiel
*
* Render the current image such that it can be displayed on a
* standard 4-color 640x200 Workbench screen.
*
*/
OPTIONS RESULTS
GetMain ; IF result = "" THEN EXIT /* make sure we have a buffer */
RequestFile '"Output Image Name..."' /* Get filename from user */
IF rc ~= 0 THEN EXIT /* Cancelled... */
output = result
SaveUndo ; Undo Off ; Redraw Off /* Save undo buffer, then turn it off */
/* Scale image to 640x200 */
Palette Rend /* Select render palette */
GrabPalette Workbench /* Grab workbench screen colors */
SetRange 8 0 15 /* Make range 8 the first four colors */
LockRange 8 On /* Lock the first four colors */
Render Go /* Render the image */
SaveRenderedAs ILBM output
Render Close /* Close render screen */
Undo On ; Undo Quiet ; Redraw On /* Restore original image */
EXIT /* All done */